package com.itlong.cloud.commons.resource;

import com.itlong.cloud.POJO.PO.UserLoginLogPO;
import com.itlong.cloud.commons.service.IUserLoginLogService;
import com.itlong.cloud.noncore.commons.IUserLoginLogServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <desc>
 *      用户登录日志业务处理暴露接口实现类
 * </desc>
 *
 * @createDate 2017/10/16
 */
@RestController
public class UserLoginLogServiceResource implements IUserLoginLogServiceClient{
    @Autowired
    IUserLoginLogService iUserLoginLogService;

    /**
     * <desc>
     *      保存用户登录日志信息
     * </desc>
     *
     * @param userLoginLogPO 登陆日志实体类
     * @return
     * @author Jiaqi.X
     * @createDate 2017/10/16
     */
    @Override
    @RequestMapping(path = "/sys/logManage/userLoginLog/save")
    public Integer save(@RequestBody UserLoginLogPO userLoginLogPO) throws Exception {
        return iUserLoginLogService.save(userLoginLogPO);
    }
}
